<template>
	<view class="content">
		<view class="title">
			注册
		</view>
		<view class="row-input">
			<input placeholder="请输入用户名" maxlength="16" />
		</view>
		<view class="row-input">
			<input placeholder="请输入密码" maxlength="18" password />
			<view class="code" @click="getCode">获取验证码</view>
		</view>
		<view class="menu-link">
			<text @click="getCode">收不到短信？点我
				<text class="send-code">重新发送验证码</text>
			</text>
		</view>
		<view class="login-btn">注册</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		methods: {
			// 注册
			getCode() {
				uni.showToast({
					title: "验证码已发送",
					icon: "success"
				})
			}
		},
	}
</script>

<style lang="scss" scoped>
	.content {
		padding: 0 60rpx;
	}

	.title {
		height: 300rpx;
		display: flex;
		justify-content: flex-start;
		align-items: center;
		font-size: 60rpx;
		font-weight: bold;
		letter-spacing: 5rpx;
		color: #000000;
	}

	.row-input {
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 160rpx;
		border-bottom: 2rpx solid #b1b1b1;

		input {
			width: 480rpx;
			font-size: 30rpx;
		}

		.code {
			width: 200rpx;
			background-color: #0f71e3;
			border-radius: 50rpx;
			font-size: 28rpx;
			color: #FFFFFF;
			padding: 20rpx;
			text-align: center;
		}
	}

	.menu-link {
		display: flex;
		justify-content: flex-end;
		line-height: 100rpx;
		font-size: 28rpx;
		color: #9d9d9d;
		padding-bottom: 20rpx;

		.send-code {
			color: #000000;
		}
	}

	.login-btn {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 100%;
		color: #FFFFFF;
		font-size: 32rpx;
		letter-spacing: 20rpx;
		height: 100rpx;
		border-radius: 50rpx;
		background-color: #0f71e3;
	}
</style>